package fr.bruno.tutos.references.java8.referencedemethode;

public class PointHolder {

	public Point point;
	
	public PointHolder(){
		this.point = new Point();
		point.setX(10);
		point.setY(20);
	}
	
	public PointHolder(Point point){
		this();
		point.setX(this.point.getX());
		point.setY(this.point.getY());
	}
	
	public Point buildPoint() {
        return new Point(5, 15);
    }
 
    public static Point buildStaticPoint() {
        return new Point(5, 15);
    }
}
